<?php 

require_once(realpath(dirname(__FILE__)) . '/../UserService.php');
require_once(realpath(dirname(__FILE__)) . '/../CommonService.php');
require_once(realpath(dirname(__FILE__)) . '/../ChatService.php');
require_once(realpath(dirname(__FILE__)) . '/../MessageService.php');
require_once(realpath(dirname(__FILE__)) . '/../DataService.php');
require_once(realpath(dirname(__FILE__)) . '/../SystemConfiguration.php');
require_once(realpath(dirname(__FILE__)) . '/../AuthenticationService.php');

class ServiceFactory
{

    public static function get($serviceName = "CommonService")
    {
        if($serviceName)
        {
            return new $serviceName();
        }
        
        return new CommonService();
    }
}
?>